Skip to content

ci: add bumpversion workflow#140

Open
daniel-jones-dev wants to merge 3 commits intomainfrom
bump-version-action
Open

ci: add bumpversion workflow#140
daniel-jones-dev wants to merge 3 commits intomainfrom
bump-version-action

Conversation

@daniel-jones-dev
Copy link
Member

@daniel-jones-dev daniel-jones-dev commented Aug 29, 2025

Adds a manually-triggered workflow to bump the version, update the changelog, and open a PR for review.

What it does

  1. Runs bump-my-version to update version strings across source files (configured via .bumpversion.toml)
  2. Updates CHANGELOG.md via keep-a-changelog-action
  3. Opens a PR with the changes and extracted release notes for reviewer sign-off

Trigger via Actions → Bump Version → Run workflow, choosing major, minor, or patch.

Security / reliability notes

  • All third-party actions are pinned to full commit SHAs (supply-chain safety)
  • Permissions are scoped to the job, not the workflow (contents: write, pull-requests: write only)
  • concurrency: group: bumpversion prevents overlapping runs corrupting version state
  • peter-evans/create-pull-request owns the commit — no manual git commit before the action runs
  • GITHUB_TOKEN is used throughout; PRs created by this workflow will not trigger other pull_request workflows

Prerequisite

Enable "Allow GitHub Actions to create and approve pull requests" in:
Settings → Actions → General → Workflow permissions

@daniel-jones-dev daniel-jones-dev self-assigned this Aug 29, 2025
@daniel-jones-dev daniel-jones-dev marked this pull request as draft September 5, 2025 07:14
@daniel-jones-dev daniel-jones-dev force-pushed the bump-version-action branch 2 times, most recently from 38f6d14 to 567e12a Compare September 15, 2025 11:44
@daniel-jones-dev daniel-jones-dev marked this pull request as ready for review September 15, 2025 12:38
  1. Permissions — permissions: {} at workflow level, scoped contents: write + pull-requests: write to the job.
  2. Concurrency guard — group: bumpversion, cancel-in-progress: false so a second trigger waits rather than interrupting mid-bump.
  3. Pre-commit fix — removed the "Configure Git" and "Create version commit" steps; create-pull-request now owns the commit via commit-message.
@daniel-jones-dev daniel-jones-dev changed the title Add Bump-version action ci: add bumpversion workflow Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants